package builder.demo01;

public class Worker extends Builder {
    private Product product;

    public Worker() {
        product=new Product();

    }

    @Override
    void buildA() {
        product.setA("地基");
        System.out.println("地基");

    }

    @Override
    void buildB() {
        product.setB("钢筋");
        System.out.println("钢筋");

    }

    @Override
    void buildC() {
        product.setC("电线");
        System.out.println("电线");

    }

    @Override
    void buildD() {
        product.setD("粉刷");
        System.out.println("粉刷");

    }

    @Override
    Product getProduct() {
        return product;
    }


}
